<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
    <script src="uku.js"></script>
</head>
<body>
<div uku-application>
    <input type="text" uku-value="myCtrl.message">
    <input type="text" uku-value="myCtrl.message">
    <textarea rows="4" uku-value="myCtrl.message"></textarea>
    <p uku-text="myCtrl.message"></p>
</div>
<script>
    //Register ViewModel
    var uku = new Ukulele();
    uku.registerController("myCtrl", new MyController());
    uku.init();
    //Define ViewModel
    function MyController() {
        var that = this;
        this.message = "hello, ukulele";
        setTimeout(function(){
            that.message = "1111";
            uku.refresh("myCtrl");
        }, 3000);
    }
</script>
</body>
</html>